@import "../../../sass/base.scss";

.toolHeader {
    background: #fff;
    height: 50px;
    border-bottom: 1px solid #e5e5e5;
    .resize-bar {
        width: 2px;
        background: #ccc;
        border: none;
    }
    .column {
        float: left;
        padding: 0px 10px;
        height: 100%;
        color: #000;
        line-height: 50px;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        span.disabled{
            color: #2dbdc5
        }
    }
    .column.taskName{
        text-align: left;
        padding-left: 13px;
    }
}

.ganttTaskBox {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
    overflow: hidden;
    overflow-x: auto;
}

.resize-bar {
    width: 1px;
    cursor: col-resize;
    height: 100%;
    float: left;
}

.greyFont {
    color: #cccccc
}

::ng-deep .task-list {
    position: absolute;
    bottom: 0px;
    top: 50px;
    .row {
        height: 36px;
        background: #fff;
        overflow: hidden;
        border-bottom: 1px solid #e5e5e5;
        .column {
            float: left;
            padding: 0px 10px;
            height: 100%;
            color: #000000;
            line-height: 36px;
            text-align: center;
        }
        .resize-bar {
            width: 2px;
            background: #ccc
        }
    }
    .row:hover{
        background: #f0fbff;
    }
    .gantt_selected {
        background: #f0fbff
    }
    .anticon-environment {
        color: #419fe8;
    }
    .ant-checkbox-checked .ant-checkbox-inner, .ant-checkbox-indeterminate .ant-checkbox-inner{
        background-color: #419fe8;
        border-color: #419fe8;
    }
    .ant-checkbox-input:focus+.ant-checkbox-inner, .ant-checkbox-wrapper:hover .ant-checkbox-inner, .ant-checkbox:hover .ant-checkbox-inner{
        border-color: #419fe8;
    }
}



.column:nth-child(1) {
    width: 40px
}

.column.id {
    width: 60px
}

.column.resize-bar {
    padding: 0px !important;
}

.column.prevtask {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    span {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        display: block;
    }
}

.column.startDate {
    width: 120px;
}

.column.duration {
    width: 75px;
    input {
        width: 100%
    }
}

.column.endDate {
    width: 120px;
}

.column.actualStartDate {
    width: 120px;
}

.column.actualDuration {
    width: 50px
}

.column.actualEndDate {
    width: 120px;
}

.column.finishSubmit,
.column.finishRate,
.column.submit {
    width: 70px
}

.column.finishRate,
.column.submit {
    i {
        cursor: pointer
    }
    i:hover {
        color: #8a8a8a
    }
}

::ng-deep .column input {
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
}

.column:nth-child(9) input,
.column:nth-child(12) input {
    text-align: center;
}

::ng-deep .ant-input-number {
    position: relative;
    padding: 4px 7px;
    width: 100%;
    cursor: text;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.65);
    background-color: #fff;
    background-image: none;
    transition: all .3s;
    margin: 0;
    height: 100%;
    display: inline-block;
    border: 1px solid #d9d9d9;
}
.isKey{
    color: #fe7f81 !important
}
::ng-deep .column.taskName {
    position: relative;
    padding: 0px 12px;
    
    .taskName{
        text-align: left;
        padding: 0px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .anticon-caret-down,
    .anticon-caret-right {
        -webkit-transform: scale(0.7);
        transform: scale(0.7);
        cursor: pointer;
        float: left;
        position: relative;
        left: -10px;
        top: 12px;
        z-index: 9;
    }
    .taskName {
        position: absolute;
        left: 0px;
        right: 0px;
        text-align: left;
        cursor: pointer;
        span{
            padding-left: 3px;
        }
    }
}

::ng-deep .column.duration {
    .ant-input {
        text-align: center
    }
}

::ng-deep .gantt_isParent .ant-input {
    font-weight: bold;
}

::ng-deep .gantt_isChild .ant-input {
    padding-left: 10px !important;
}

::ng-deep .column .anticon {
    cursor: pointer
}